<html>
<head>
    <title>a</title>
    <style>
@page {
  size: 120px 60px;
  margin: 0;
}
    </style>
</head>
<body>
<object type="image/barcode" style="width:100px;height:40px;border:1px solid red;" format="DATA_MATRIX" value="hello world">
    <encode-hint name="DATA_MATRIX_SHAPE" value="FORCE_RECTANGLE"></encode-hint>
</object>
</body>
</html>